package com.z6pin.user.z6pinuser.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.z6pin.user.z6pinuser.domain.Person;

@FeignClient("z6pin-coin")
public interface PersonService {
	@RequestMapping(method = RequestMethod.POST, value = "/save", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	@ResponseBody
	List<Person> save(@RequestBody String name);
	
	@RequestMapping(method = RequestMethod.POST, value = "/getDjg", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)
	@ResponseBody
	Person getDjg(@RequestBody Person person);
}
